package com.zfei.gfb.request;

import com.zfei.gfb.bean.Status;
import com.zfei.gfb.bean.StatusException;
import com.zfei.gfb.util.ObjUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * @author fgh
 */
@Data
public class GfbWriteOffRequest {

    // 订单id
    @ApiModelProperty(value = "订单id",required = true)
    private Integer orderId;


    public void checkInsertNull() {
        if (ObjUtil.anyNull(orderId)) {
            throw new StatusException(Status.INVALID_ARGUMENT);
        }

    }

}

